package com.maiyuren.fishkit.ui.components.dict

fun handle_dict_lookfor_result(str: String) : String {
    var temp = str
    temp = temp.replace(" src=\"assets", " src=\"http://fishdict/assets")

    val style = "<style type=\"text/css\">@font-face {font-family: \"KaiXinSong\";src: url(\"file:///android_asset/fonts/dict.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;}</style>"
    val result = "<html lang=\"zh\"><head><meta charset=\"utf-8\">${style}</head><body style=\"background:#ddd;font-family:KaiXinSong;\">${temp}</body></html>"
    return result
}